//package com.qifenqian.turbot.deprecated.presenter
//
//import android.content.Context
//import com.qifenqian.turbot.base.BasePresenter
//import com.qifenqian.turbot.deprecated.contract.IdentityVerifyContract
//import com.qifenqian.turbot.deprecated.model.IdentityVerifyModel
//import com.qifenqian.turbot.net.ModelCallback
//
///**
// * @author H
// * @createTime 2018/12/17 11:52
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountPresenter")
//class IdentityVerifyPresenter(context: Context, view: IdentityVerifyContract.View) : BasePresenter<IdentityVerifyContract.View, IdentityVerifyModel>(context, view), IdentityVerifyContract.Presenter {
//
//    override fun sendSmsCode(type: Int) {
//        mModel.sendSmsCode(type, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.getCodeSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//
//        })
//    }
//
//    override fun identityVerifyFirst(userCode: String, frontPhotoOfIdCard: String, backPhotoOfIdCard: String, bankNo: String, bankName: String, phone: String, smsCode: String) {
//        mModel.identityVerifyFirst(userCode, frontPhotoOfIdCard, backPhotoOfIdCard, bankNo, bankName, phone, smsCode, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.identityVerifyFirstSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//        })
//    }
//
//    override fun identityVerifySecond(userCode: String, businessLicense: String, storePhotos: MutableList<String>, cateringServiceLicense: String) {
//        mModel.identityVerifySecond(userCode, businessLicense, storePhotos, cateringServiceLicense, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.identityVerifySecondSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//        })
//    }
//
//    override fun createModel(): IdentityVerifyModel {
//        return IdentityVerifyModel(mContext)
//    }
//}
